
class _constant:
    class ConstError(TypeError): pass

    def __setattr__(self, name, value):
        if name in self.__dict__:
            raise self.ConstError("Can't rebind const (%s)" % name)
        self.__dict__[name] = value


constant = _constant()
constant.proToken="1e953605a4ef502d395b602d61e3a72ff253893ae0d9a2973680e7c4"
constant.dbPath="mysql+mysqlconnector://yi_fundamentals:rfusidijgdvfs2s7@106.54.82.86:3306/fundamentals?charset=utf8"


def get_pro_token():
    """
    更新当前数据，后续使用定时器
    """
    return constant.proToken


def get_db_path():
    """
    更新当前数据，后续使用定时器
    """
    return constant.dbPath